Moved to gradle build for easier setup and faster test execution.

Moved to gradle build for easier setup and faster test execution.

Also setup the .gitignore file