Sinatra-like rest services in PHP