Configurable payload type and response type

Request payload is now configurable to json (default) or form
parameters. Response type (consumes) is configurable (default to
application/json).
Fix form params that allow empty strings that are not enums.