Simple Sinatra authentication middleware