#1765 first spike of integration with rhq-metrics and refactored the pre...

...vious elasticsearch specific metrics code so we can use either rhq metrics or elasticsearch