Add .jshintrc
Start using $resource and promises