Adapted to java 1.7. Added gradle build files. Proper source directories.