initial event tracking analytics

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