Refactored into a maven project

Please don't count this commit! :)