New Maven structure

New structure, to folllow Maven conventions. Also deleted lots of
unused files, and polished. Still unit tests left, and conversion
to Java 1.7/log4j 2.1. Still lots of deprecated references left.