Persistence can export, and more, including OSGi multi-versions

First part of a bunch of changes to make persistence and osgi more reliable