Slight fixes to angular's main.js (reverting a POST change) and making the controller loaded by the routeprovider rather than a directive