implements NetworkServices.onservicefound and NetworkService.onavailable

closes #2 and #5