Major refactoring: use gradle-clickstack-plugin and clickstack-framework