WIP: Refactoring Boostrapping code, made tests work with default gradle configuration.
Refactored bootstrap, still has hardcoded paths though.