Construct absolute paths and full URLs to actions in a Sinatra application