add --log and --param commandline swites
Do some refactoring of message handler and server imposter