Controller examples

...for use in docs.

refs #175 

Use `json.NewEncoder(w).Encode`