Add API method to send notifications from a plugin to the client

Closes #85