enable applications to be pulled from apiary

Created a globals file to keep track of the API root url for the
application.  Also needed to remove the trailing slash on the
applications url in order for Apiary to work.  This doesn’t seem to
affect the real atmosphere API.
remove trailing slash for individual applications
configure models to use global API_ROOT

instead of hard coded path
remove trailing slash on individual identities

required for Apiary to work