Replace loggers
Add HTTPS detection methods
Modify to use custom error page when panic or route not found