First Endpoints functionality commit

- Add getClientLibs and getDiscoveryDocs tasks
- Add endpoints configuration closure
- Add endpoints tasks as optional to the build task tree in endpoints closure
- Add test for endpoints
  - Add ability to create snapshot to build.gradle so testing is easier
  - Send appengine version as system property to tests