Server side rails app to persist ember data and serve javascript