spatial_metadata will load the resources (public, templates and resources) for all plugins to use, as it needs to be loaded anyway.
Much simplified plugin for previewing WMS. It requires the resource_proxy plugin to work. Also clean up public and template dir to mimic core layout.
I.e for the WMS preview plugin. Also add tests for the WMS preview plugin and use dataset instead of package on the UI.