[AS7-6173] Initial FrameworkFactory implementation
[AS7-6371] Revert "Move clear tmp dir hack to bootstrap impl"

This reverts commit ad3e878098129cb2ac925a50abe809aced6b070b.
[AS7-5217] Add test coverage for OSGi subsystem bootstrap scenarios
Fix logic