Improve repository API

* Replace tag.gz package format to zip
* Add lazy=joined to get class_definitions automatically
* Improve logging

Change-Id: Idbbe9c913b02abcb1d273edf6a84cb14587bac2a
Merge "Improve repository API"