Added overloaded MapConnection method to allow adding owin middleware

- Added tests for MapConnection methods
- Made changes as per code review feedabck for MapHub overload
#1800