This also moves some helper functions from tripleo-common mistral action to utils.py. A subsequent patch would cleanup the mistral actions in tripleo-common. Closes-Bug: #1915780 Change-Id: I8cf4c983c8810a42bd703b097dc1cb8034798314