Added an overloaded MapHubs to allow using middleware

- Added a unit test for the overloaded MapHubs method
- Added a sample that uses headers to authorize using owin middleware

#1800