=pro #15031 move build logic into separate files

Build logic in now in separate scala files. Next step would be to move project definitions to a separate `build.sbt` files which would be placed together with corresponding projects.

Also removed `all-tests` project, which is not used anymore.

This is mainly about restructuring source code. Functionality remains unchanged.