Move plugin module-finding into model

This prevents potential reloading / thread safety issues. Also removes
the db fields that are made redundant by auto-detecting the module.

Not working yet but we are making progress.