Make Multi host work more generically

This pull request addresses GH-195 / GH-27 
And adds a test for mulithost command, currently missing.