Putting the pieces together ...

Squashed commit of the following:

commit d480c870e2ec53d7ac8b3d4c0736ed833fe5fecb
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Mon Nov 26 17:44:28 2012 +0100

    WIP: config changes.

commit cf0c3ab655257d94a5f71a6c01aa43609a779f35
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Mon Nov 26 04:48:18 2012 +0100

    https stuff.

commit ad2b9674b2bae110687a83facbb6466dca54f9c9
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Mon Nov 26 03:18:01 2012 +0100

    Cleanups.

commit 2558d79437eb3566e07120696adb60015b1c5ed5
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Sat Nov 24 02:29:32 2012 +0100

    First attempt of TransportWithMessageCredential.

commit eb082f6c5f6cddbde75e80db6f7e61f0a3247f01
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Sat Nov 24 00:10:26 2012 +0100

    Import net-tcp security policy.

commit 1e4e5623e8019d61ae72d4e6f213625f3b7f27f7
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Fri Nov 23 23:07:41 2012 +0100

    Support both http and tcp in TransportBindingElementImporter.

commit 3f795082344d9a77ad75b6011e1a94c4b9d36be4
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Fri Nov 23 20:38:16 2012 +0100

    Always invoke the policy import extensions to allow them to define defaults.

commit ff058428e1b2f6bab72fcef4b82f5cbf99d37890
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Fri Nov 23 20:34:50 2012 +0100

    Finish MessageEncodingBindingElementImporter.

commit 113e32a030adb7e8e58dec042e2f24690bd5086c
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Fri Nov 23 20:04:12 2012 +0100

    Some changes from yesterday.

commit a987de0d04f5507d3f4ab9f4ad9ef538a921e125
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Thu Nov 22 19:25:27 2012 +0100

    Add internal static PolicyImportHelper class.

commit 0ecd77fe1651a43526994c00537ff1db7a1c17e5
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Thu Nov 22 19:11:20 2012 +0100

    Catch exceptions while importing policy.

commit 09f8f76761ca2e37eab02aafe90d579c343c083e
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Thu Nov 22 19:07:31 2012 +0100

    WsdlImporter.WsdlImportException -> MetadataImporter.MetadataImportException.

commit 951492b34e918c5d28702e0ba71368cfda8cb9a9
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Thu Nov 22 01:36:07 2012 +0100

    Cleanups.

commit 6ff8c476089212773562c4e9ed8b9b2069368ecd
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Thu Nov 22 01:20:29 2012 +0100

    Remove test; the tested behavior is no longer correct.

commit 645d3d8fad88e532d13959fff25a0e4626c36c5e
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Thu Nov 22 00:45:40 2012 +0100

    Small fix.

commit 593164665975f472973a5a8c4b5e411db3618dc9
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Thu Nov 22 00:17:33 2012 +0100

    Fix path.

commit 3bcc06c01339a6c7c126190a107fe10f8d332f7d
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Wed Nov 21 20:29:14 2012 +0100

    Import WsdlImporter.ImportEndpoints().

commit d810cd4f0f36285d6843d15c13e9cf4caefd2d8c
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Wed Nov 21 19:58:30 2012 +0100

    Cleanups.

commit 85790846ae524efe0a8d20136769e854be3ed1b5
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Wed Nov 21 19:50:57 2012 +0100

    More error handling.

commit 8a2e01621245b1ce63cb183b1695c8adaae506fe
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Wed Nov 21 19:01:31 2012 +0100

    Error handling.

commit 963ed96ec9bd26f23f4808a4b8ca4d9eb4d4c1f7
Merge: b73522a bb0721b
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Wed Nov 21 02:51:37 2012 +0100

    Merge master commit bb0721b.

commit b73522ab43134855e3fb3f51d59a763e958419d9
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Wed Nov 21 01:49:46 2012 +0100

    Ok, but this one does :-)

commit bdaa0613f188d4790a025be8f2dddc7fc7452ff9
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Wed Nov 21 00:04:38 2012 +0100

    First part of fixing ConfigSection.EvaluationContext.

    This doesn't solve the BindingsSection problem yet.

commit 0b65c214d3c41a7eb5e40c0a1ff98382a01f1f99
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 23:26:06 2012 +0100

    Small fix.

commit 512c71c50fabd5abfdcc09fabd893546de30a161
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 23:02:45 2012 +0100

    Fix ConfigurationManagerTest for .NET 4.0 and 4.5.

    Use a new 'DotNetVersion' property rather than hardcoding 'net_2_0'.

commit 039679fcfe10cc88dcfd3745029dd14d122a6a75
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 07:12:35 2012 +0100

    FIXME

commit 9e5e1a8242719b965e65e0978fc746bf90f38a9a
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 05:05:01 2012 +0100

    Kill the debugging spew.

commit 8de6ba9b22cf3d0c0ab722cb06a3a6a24b82b77c
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 04:51:36 2012 +0100

    Copy these over from my test project.

commit e71bf81842757321f1b15fac38e52af204b2533b
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 04:47:12 2012 +0100

    Propagate the binding elements into the CustomBinding ... and it works :-)

commit b922039b9efd09415d92908e7c3e07fd151c287c
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 04:42:32 2012 +0100

    Oops, add the actual assertions, not the <wsp:Policy> element.

commit 090b445ac94aeb2fea81c16ddde9ea74a466ff8c
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 04:06:20 2012 +0100

    Lookup policies and invoke the IPolicyImportExtensions.

commit 86b34a594dcfba8ece2481afe704f484417c8972
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 03:21:31 2012 +0100

    Cache imported bindings and endpoints.

commit 928a3117c1bb80504fa059ea6bf5e00cb7c78873
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 03:00:18 2012 +0100

    Cache imported ContractDescriptions.

commit 97893a08b5db76598fc4be277fea30b5f52de78e
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Tue Nov 20 02:33:08 2012 +0100

    Use IWsdlImportExtension.ImportEndpoint to import bindings.

commit 223dd2e2f807a7e8570a95aa64a29175b338f97d
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Fri Nov 16 23:57:21 2012 +0100

    .NET 4.5 BasicHttpBinding API refactorings.

commit f2a8ae9c313669d02e42eaf1fd942c5bdd970349
Author: Martin Baulig <martin.baulig@xamarin.com>
Date:   Fri Nov 16 23:27:51 2012 +0100

    BasicHttpBinding.