Ooops, fixed warnings
Now also running the doctests for JSON root
Minor cleanup
JSON.encode now returns {:ok, result} to allow proper error handling in custom protocol implementations
Fixed broken example code
Minor cleanup