Revert "Remove the presenceRequest API"

This reverts commit 53e4913aee1a61c457b539e583add6626fec1571.
Put back presenceRequest to fix the long polling
Fix functional tests