Mono Support

It's not pretty... 

Two things that are incompatible with Mono:
* Mono does not implement HostingEnvironment.InClientBuildManager (and has no concept of a build mode afaik)
* Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleUtility.RegisterModule() does not work properly in Mono, for whatever reason

Both are worked around without changing the way the code runs when not on Mono (outside of a few extra conditions).