Adding Q promises for service endpoint querying