[Feature] Added better group metadata resolving
- Also fixed group metadata resolving
- Refactored some internal config variables
- Added option to change how the plugin determines group metadata