The creation commands for monitors and listeners referred to undefined variables. Also fixed the test case names being duplicated.
The core is now a module that is loaded by the command line client. This allows the core library to be reused for testing.