The core is now a module that is loaded by the command line client. This allows the core library to be reused for testing.
The test sets and clears server states and verifies it via the REST API. It also checks that only correct arguments are accepted.