Adding validate external to ModuleApi
Better null checks for bad models

More resistant to NullPointerException. There is LOADS still to do in
this part.
Enabling more tests and cleanup on old tests

One will not succeed and is what I should be working on next. Both the
actual xml and json files are lacking and should not pass even though
they are named "valid-*" and the validation tests are not complete.