Use ERB templates instead of inline HTML

Previously, GET and POST '/' routes were returning inline HTML. This has been removed and ERB template files are now being rendered instead. The sinatra specific code has been extracted to a server.rb file - this also helps when referencing the ERB templates.