Add codehaus exec plugin for executing from the command line
Moved around some of the main() methods and add a more explicit client class.