Semantic redirects for ref -> oid (307)
Move error handling to Sinatra apps

Makes it possible to use the Sinatra actions in another Rack app and
provide your own error handling
Up version