Refactored the modloader to implement an interface and offer a default directory-based modloader.