added basic event tracking functionality; todo: have it push these events to some server