Refactoring sample and adding support for connection strings

Cleaned up the sample so that it is isolated from the rest of the project and can easily be deployed to the cloud.

Added support for ServiceBus connection strings.