Add support for parsing jsonfied heat error

Keep the legacy method for the cases that user may use
an old version of heat.

Fixes bug #1207624
Change-Id: I3346d7a6f8f51746ee5455720f093cd785623634
Merge "Add support for parsing jsonfied heat error"