Appng 90 - Improve RESTFactory

Rest directive now depends on REST factory, not Restangular.

Fixed some jshint errors.