set a rootscope global for base url of the api
hook up auth to baseurl
little cleanup
localhost for dev