heat api : allow validation of YAML templates via cfn api

Currently validation only works if the template is json

fixes bug 1131290

Change-Id: Ia08ba7cc18908697b5fdfc1eb711d84d7b39c7cb
Merge "heat api : allow validation of YAML templates via cfn api"