Added build.xml file and tidied up dependencies.
Updated build.xml to require Java 1.7.