Usage API works

Added JSON encoding, UsageRecords()