Fixed resolving of service names and details. 

Fixed resolving of service names with getApplications() and service details with getServices().

Fixes #56 and #66.