Refactored analytics code into lib module, ready to turn into gem. Added
analytics classes for additional aggregate types.
Created analytics rake events to purge analytics db and populate with sample data.
Refactored front-end analytics graphs to pull data from Analytics Aggregate classes.
Got login frequency analytics working. Refactored event_logger, user_id always required, optional data moved to data hash.
Added todos for refactoring analytics classes with type modules.
Added pageview analytics event.