Reorganized code to make a self-sufficient plugin. Ant build rules should work.