Minor updates for quick copy and adapt, minor refactoring.

- Updated the gitignore file.
- Move settings to gradle.properties and settings.gradle.
- Added the hibernate dialect in the default hibernate properties.