Ignore .gradle and build directories.
Add gradle wrapper. Migrate to new project structure.