Lots of cleanup and bug fixes in the string library.
Added most of the rest of the JSON parser.