Added ant build files

 - Also several fixes & tweaks to the Java code.

 - Now ready for continuous integration