minor cleanups, added unified command line driver, added build.xml

Now everything builds as a single jarfile that supports
all of the functionality.