Update to ruby 2.1.0
Update angular.
Add angular-cookies.
Store credentials in cookies and automatically populate them.