Fixed build problems

This now works when i checkout the file and build in intellij using the default wrapper.

Fixed two things that should mean it now builds properly:
1. added a gradle.settings file to identify the different modules of the project.
2. You need the gradle wrapper .jar as part of the project. As the pattern matching in the .gitignore is done in order, I moved the gradle section to the bottom of the file to make sure the wrapper is included.