fix test/snapshot and maven repo call in buildfile
Cached generation of client-libs/discovery-doc
Fix endpoints webapp dir resolution and task order