Add pretty JSON encoding functionality for scotty.

Pretty printing uses the 'raw' function which should be included in
the next release of scotty.