changed the mouse click callback to pass button and action to plugins.
added mapping fns
added option to modify coord-system.