Replace TrackErrors with simpler module function

The previous code had a lot of obscure and unnecessary logic
Reorganise common modules to new_common
Simplify tracking of JS errors

Can be loaded even earlier, since only relies on global data
Extract mixpanel data
Merge branch 'new-dashboard' of https://github.com/CartoDB/cartodb into new-dashboard