General code polish.

JavaDoc polish. Removed JPA annotations as we're not using any persistence. Added Apache license headers where necessary. Added Logback configuration.