GQSS-355 Fixed hex encoding problem. Refactored header authorization, version 4. Note that we need to reconstruct the request payload, as it has already been parsed. Added and refactored unit tests.
Merge branch '4.2' of github.com:greenqloud/cloudstack into 4.2

Merged authorization v4.