Changed to the FC's new addon system

Basically transferred the functionality from the previous modloader
class to the new addon class. This should theoretically work, but test
it out and replace any non-functioning code you discover.