Authentication module for sinatra and some auth helpers