rails as api/ sinatra & angular front end