Handling promises better and adding angularjs and angular mocks to bower dependencies