Layer seems interesting but I think the reason XMPP ultimately succeeded was because of federation and a healthy open source ecosystem. We are drafting a federated, minimal knowledge push server design for privacy-minded chat apps: https://github.com/ChatSecure/ChatSecure-Push-Server/tree/ma... (a little out of date)