refactoring the cross page message api to be an
Angular service in the application.coffee file