Analytics events

This gets us a little further down the analytics path. Added some more click events and wrote docs.

Related to #178 but not a complete solution. There is a lot more work to do before that's complete.