initial event tracking analytics

Implements http://manage.dimagi.com/default.asp?66499#496302

https://github.com/dimagi/Vellum/pull/151