Controller examples

...for use in docs.

refs #175 

I think it might be cleaner to use a `json.Encoder` here.