Sinatra Authentication Framework
Clone it. Add to it. Make it better. Add some routes. Use the helpers.
current_user #=> Returns current logged in user login_required #=> Checks if a user is logged in admin_required #=> Checks if user is an admin is_owner? :id #=> Checks if logged in user has same id as requested