Conversion of my Rails Spending App to AngularJS/Firebase