Added gradle dependency management and changed file structure to support gradle build