Improved error handling on HTTP/S server startup. Fixed Passport usage.