Json schema for templates

This patch adds the template json schema to API.json. The schema is
going to be used for data validation.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>
Enable template data verification against json schema

This patch enables data verification against json schema. The verified
data comes from template edit UI, when the user tries to update one
of his templates.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>
Fix test cases according to new Templates Schema validation

This patch modifies the test cases in order to work with new json
schema validation and API returns. CDROM is now required and model
test became obsolete.

Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com>