Preliminary PR containing Metric reporting, GCM, etc.

* GCM support is still experimental. 
* Metrics are per machine and can be collected from /metrics

needs review and QA