Switch to maven structure. Add a pom.xml.
Fix maven compilation
Move the pom up to the top level.