Remove handling "x-forwarded-proto" in codebase and move it to AS configuration. fixes #1