Extract Metrics out of ReportText

Metrics will be reused with other Reporters
ReportJSON
Go lint
Fix metrics.StatusCode test
Merge pull request #20 from tsenart/json-reporter

JSON Reporter