Adds initial channel, remote parameter passing and protocol detection if not provided in query for consumer

More detailed explanation with example:
https://gist.github.com/janiskesteris/5204697