Define plugins on client and server

As hooks are available on both client and server now with different
actions (do nothing on server), we can use the same plugin actions on
both client and server.