Changed hash function for controller commands

Also fixed makefile dependency so the generated file depends on the
script that generates it.
Added testcase for terminate and invalid commands

Also fixed some bugs in the Test::DaemonProxy helper class
Added echo command - fixes #13