Remove interface checks
Since we're passing IModule and IPost to getPlugins and thus getting only IModules/IPosts, this code is obsolete.
Clean up module loading code
- Removed lots of duplicate code
- Removed obsolete brackets
Fix intents in module loading and revert duplicate code removal
I really wish there was a way to not have so much duplicate code, but right now I can't think of much without breaking it.
Remove obsolete brackets in module unloading