Extedn Q.js with to$q() to make it easy to transition from Q.js to Angular $q promise