Angular Directives and Services for the chrome apps API