Add metrics as maven dependency

Add: PluginMetrics for creating plugin stats is now using a maven dependency.