manage registrations properly

- unregister from all registrations except a first one
- register new endpoint only when required
- refresh existing registrations with UPS