Sinatra module for shared login/authentication stuff