Introduce ApexSession class and refactor some code.

Clean up some session code by introducing a new ApexSession class, that
holds the state of a session, and can be used to update the state as
well. Makes it easier to do future refactoring, eg when we add more
state in the session.

Bug: 118865310
Test: apexservice_test, apex_e2e_tests
Change-Id: I73f3f87ee793f6646be043fc0aab6c3d1a00b5d1
5 files changed
tree: ff090ee144dcda76d8b55fa70eb6e9bcbc7c7eb8
  1. apexd/
  2. apexer/
  3. proto/
  4. tests/
  5. OWNERS
  6. PREUPLOAD.cfg