Port from Rails to Sinatra to reduce memory consumption.

Rails was overkill for a simple proxy, which is all that is left after
removing delayed_job and postgres.