Fix configuration.
Modularize build.
Use groovy @Canonical for events and commands.