initial use of EventLogging infrastructure

todos:
* opt-out of stats collection
* be clear about whether we're uploading to test or commons
* update schemas
* save source info (gallery/camera/external)
* log login stuff more clearly