Allow use of JLayouts in Plugins

And do a demo use in part of the pagebreak plugin