Quite a few changes in order to integrate sinatra-authenticate gem