Port Facebook middleware from Katana.

Depends on https://github.com/aspnet/HttpAbstractions/pull/113
TODO: CoreCLR WinHttpHandler does not yet support custom server cert validation.
In this PR. This data used to be stored in IAppBuilder.Properties, but everything there moved to services.