Organize server around Sinatra subclass, add run script.

Gonzalo, please review and merge.