Moved profiles code to the host

Exposed the profiles code as a source only package so that Azure hosts can use it.
Modified IHandleProfile<T>.ProfileActivated to use ConfigurationBuilder instead.
Fixed issue with static code analysis
Merge branch 'MoveProfilesToHost' into release-5.0.0