$q is undefined in ngForce-visualForceRemoting.js

Injection should be done in $get for providers. Also, small fix to keep jshint from complaining.

Move the injection of $q and $rootScope to the $get method since this is a provider. Defined handleResultWithPromise as "function handleResultWithPromise" so hoisting will handle resolving the function call in vfRemote.send().