sinatra api template w some simple helpers