Figured out that the mingw version of simplejson was causing the appcrash in libgcc on win32. More module tests. Removed duplicate code. Some modificationsto QueryRequest
wip