Sinatra web application with basic authentication, haml e upload image apis