* Create a common helper function.
* Both specialised password and generic submit now use this.
* Provide more useful information for badly formatted json to token_submit.
* Added exception support for stacktasks' errors list.
Change-Id: Id6fd38ae79226aa9da2af3301f320129122eb2b3
* deletion of unneeded heat code
* lots of pep8 cleanup
* renaming and shifting some stuff
* adding/updating some licenses
Change-Id: Idd28a0669d1833d4975f877b601c4b43f76eb5e1