Added a basic metrics API.
Added support for MCStats.org metrics.