Rewrote Gradle scripts to be more modular

- :endpoints has its own build.gradle file
- Use "ext.{property}" (or ext block) instead of "def {property}" to declare
  properties
- Remove useless dependencies for :endpoints
- Move :endpoints related properties to :endpoints' build.gradle
- No more default dependencies for all projects
- The 'java' plugin is no loger enabled for all projects