Add API support for private-message on server side (for #77).