Fixes deprecation, Maven, javadoc and unchecked warnings

There were a number of compile warnings, especially references to the deprecated `junit.framework.Assert`. I've replaced those with the correct one (`org.junit.Assert`) and fixed a bunch of other warnings.