cloud: reorganize godoc examples

Examples should appear under the symbols they are documenting.

Change-Id: Ic0bab69adaf071da1e4caa12aa4e429848b0c595