Re-instated the security manager, but modified so it no longer throws an
exception if the thing we're reading is a class or jar file (used to
dynamically load parts of the program), since not all of the classes
appear to be pre-loaded when we run on Travis.