Final touches to the cloudutils module

Cleaning up the cloudutils code and making some small fixes.