Code review refactor

* remove protocol from http requests
* log errors in error handlers
* remove inline html