Add support and example for server-side plugins.

This PR adds the ability to easily register server-side plugins which may then be accessed by the client. Currently the only hook is one when the server starts up that allows plugins to register their own RPC functions, but we can add hooks down the line if there's  something that can't be done without them. I'd much rather add hooks than features to the server:-)