refactor(jsontools): move to functions, align `is_json` tool to return exit code
refactor(jsontools): move to functions, align `is_json` tool to return exit code

Also:

- Fix Python code in accordance with Python 3
- Use CGI module in Ruby to encode/decode strings

cmoore/oh-my-zsh,cmoore/oh-my-zsh