Added metrics

From mcstats.org
Bugfixes

Made Metrics actually work
Minor bugfixes