Initial working purpose implementation.
This commit adds a "Share" menu item to the "plugins" menu. it is
already possible to share images this way.
TODO items:
- take purpose menu in to account when enabling/disabling the plugins menu
- do something with the return value of the purpose share action
There's probably more that I've not thought of yet...