Add json encoder and decoder.
Merge branch 'rewrite' of github.com:armet/python-armet into rewrite