Add support for auto-wiring fragments
Make ctors protected