Metrics. Rewrite the Metrics system to be closer to the Bukkit version.
(cherry-picked from 2eb566b)