Added support to register presence in server.