Moving offer methods to an independent module.
Adding sinatra app.
Addind error handling on sinatra app.