Formatting 2

reformatting of the util code from org/doublecloud/ws/util to match current code standards. also did some minor refactoring to simplify some of the logic.