Refactor plugin loading code.
Fix torrent_scrub dependency loading