Totally reconstructed gradle architecture of the project. Removed a lot
of redundant build code