Gradle 1.0 milestone 8a

Updates the Repository plugin for changes in the API to 1.0-milestone-8a.

Added the Gradle Wrapper.

Improved IDEA support for the project's unusual structure.