ruby sinatra rest api webserver and emberjs webclient