updating docs, change in sample and java required for build

`java` is required by `Cakefile` to run `yuicompressor`, updated instructions about how to build to reflect this.

`discoveryUrl` was changed to `url` in example, but documentation not updated, fixed.