Move Mixpanel lib configuration to assets folder

Bugs were happening on sending events to Mixpanel due its definition inside the HTML (being re-configured on every request) and causing "too much recursion" error on JS.