Add basic web server component

Note that `app` is global, which needs to change.