Improve analytics

Add tracking of computation runtime to analytics. 

Prepare to start using the Keen Callback for handling offline analytics.