Added shutdown rest endpoint and UA test.
Factored out base web server functionality.
Fixed some integration tests that I broked.