A (hopefully) working implementation of AngularJS on Rails with Devise authentication