adding gradlew script
restructuring directories
refactoring build of snapshots