Further JSON Implementation

Refactored JSON string creation to support debugging, extensibility, and
maintainability. Added additional JSON debugging. Code cleanup to remove
leftovers from custom encoding/decoding. Changed queries to reflect
minor standardization in database.  All changes should maintain current
base functionality.