Modified the trunk controller.

Modified the validation configuration structure.
Added support for POST, GET and JSON incoming data.