remove Magento init from controller
Angular uses central config file to get endpoint URLs
generate config file before jshint