Build with Gradle 1.12.
Fix type param hiding.
Rename ModuleRegistry to BindingsSpec and make it not implement Registry.

Also renamed `modules {}` to `bindings {}` and some other methods.

Closes #323.