Improve error message for cases of invalid or missing namespaces.

Resolves: https://www.pivotaltracker.com/story/show/82412616
Remove pointless double-lock and improve module branch coverage
Add tests in kernel-impl
Add test for build message exception
Remove unused method.
Add result transform tests
Remove stale helper method and dysfunctional test
Merge remote-tracking branch 'upstream/master'
Merge branch 'master' into master-aic
Merge branch 'master-aic' into aic-citi-db-connector
Update code to beta 5