Fixed cancel event redirect for ajax form actions

Signed-off-by: Tom Wright <tom@inflatablecookie.com>
Added row sanitizer to collection json encoder

Signed-off-by: Tom Wright <tom@inflatablecookie.com>