Added gradle, slf4j+logback and started refactoring.