Merge changes I493b969c,I7b759425,I60fe318a,Ie4ae6a97,I2379e47b, ...

* changes:
  [NS A06] Move more side effects out of the decision loop
  [NS A05] Move some side effects out of the network decision loop
  [NS A04] Store changes in rematchNetworkAndRequests in a map
  [NS A03] Remove mNetworkForRequestId
  [NS A02] Move the contents of mNetworkForRequestId to NRIs
  [NS A01] Add checks for the handler thread