Modify application setup using Sinatra::Base

Previously, the application was defined at the top-level.  It is now
defined in a separate class using Sinatra::Base.  The appropriate
environment setup has been added for Cucumber.