refactored metric sender into seperate package
fixes as suggested from reviews
fixed json tags for better readability
Merge pull request #866 from mattyw/refactor-metric-send

refactored metric sender into seperate package

Functions that dealt with sending metrics have been removed from state into a new apiserver/metricsender package.