Moved sendJson form utils to resource.

This makes it easier to extend the default behaviour.
Release 0.5.0