Improve analytics setup

* Load analytics key from environment variable
* Don’t send local activity to analytics server (default empty key)
* Setup separate staging/production analytics keys