Adapted to using requirejs for loading and building.
Google analytics moved to external file.
Simplified grunt file.