Work with remote or local rails/sinatra application