Replace cloud_account references with credential, fix broken tests.
Fix some representer bugs.