OSGi (work in progress)

https://hibernate.onjira.com/browse/HHH-7527
https://hibernate.onjira.com/browse/HHH-7941
https://hibernate.onjira.com/browse/HHH-7942