Convert CSS and JS references to protocol agnostic URLs
Use protocol agnostic base url for the debug css also