Added a preview plugin example that does some simple rendering and also reacts to mouse events.