Refactored to Sinatra base and initial testing.