Make examples sub-pom of parent, fix loads of little things

Now there is no need to change to `cd examples` to run the examples. Nor is there need to pre-install the plugin.

@andytaylor these changes probably break the checked-in Idea files.