add code to debug GetDirectoryTree ajax calls
fix errors - now we really getting something
actually get json object out of string
adopt some portion of code to used go library