Add age-out policy to RamEventStore

Also includes some other minor cleanup.
Refactor networking code for better testability
Add tests of sendQueuedEvents
Rename HttpClient to HttpRequestHandler
Clean up/flesh out some more unit tests
Make event stores aware of projects