Moved resource factories into services.js

ALSO moved all vendor libs to js/vendor folder