Add `encode` and `decode` shortcut functions

Now you can just use `json::encode` and `json::decode`, which is very
practical
Implement FromStr for Json
Fix JSON documentation

Fixed some errors and added usage of the `decode` function
Fix issues in libtest
Fix issue with tests
Fix issues in librustdoc
Implement ToJson for all tuples