Clean up JS utils
It seems main.js and some of our utils have gotten messy.
We should remove things that we don't need or don't use.
We should also classify everything properly. For example common_utils
shouldn't be a thing, it should be split into a set of more specific utilities. For example url_utils
, header_utils
, so on...