Updated app to use NgResource to interact with Rails database through json.