bigger int size for edit distance
return json responses as json not text
fixed endless looping in wiki text parse. fixed {{ }} cleanup. fixed ref stripping.
added more tests to catch endless loop and bad ref data