Add command line options to set login/passcode and virtual-host headers
Changed the parameter order of util.extend to match the behaviour of the familar _.extend function
Emit end event after client socket has closed and has disconnect receipt