added config handling for endpoint, added sendEvent mode to provision, added dummy for rest push provisioning