Move Kibana's sinatra bits into a Sinatra::Base class

for easier launching from things other than the command line (like embedded into
logstash releases).

The new kibana.rb now exists to parse flags and run the app.
No visible functionality should have changed.