TS-3071: optionally emit JSON numbers in stats_over_http

Add a new option to emit floats, counters and integers and JSON
numbers rather than strings. Since some systems (*cough* Java) don't
deal well with uint64_t, add another option to wrap integers and
counters to int64_t.

This closes #100.