Make extension bundles use the system bundle context and clean-up some of the code around extension bundles. Furthermore, refactor the protection domain assignment to make it possible to hook into it via an extension bundle. (FELIX-30)