cleanup of sinatra app, switch to JSON-pure