Fix coding standard for Bootstrap.php
Fix handling of protocols forwarded by proxy. Fix #313.