The server rebuild and rescue APIs were using very similar
helper methods for parsing the image uuid out of the image_href
request parameter and also validating an image uuid was provided.
This moves that into a common utility method so we don't have
the copy/paste everywhere.
Change-Id: I7c38d576bbfc459f40eba75452cdfc97bdd9e724