Track events with Mixpanel

* Track sign in and file downloads
* Refactor Mixpanel and Google Analytics code
* Update HTML `files` class for better tracking
* Update .gitignore with bundler dirs and foreman .env