putting the apiurl into a config service
using  service instaed of
mainServiceConfig.js added to index.html
unnecessary dependencies removed from MainCtrl