pep8 fixes + license
Added apache 2.0 license
switch current counters to gauges

in-flight counts should be gauges, not counters.
Also moved indexing to shared stats since applies to versions <1.
make http total open a counter