add webapp.rb and move logging configuration into its own file