Fixed resolving of service names with getApplications().

Fixes #56.

Includes some cleanup of CloudFoundryClientTest.