remove unnecessary calls to $q.defer()
Merge pull request #179 from tepez/fixPromises

remove unnecessary calls to $q.defer()