Moved the class loader stuff to a separate module
I'm planning to use this in other projects as well.