Refactor to use sinatra and haml.