Added support for apklibs

Apklib files are now installed as well as jars. Dependencies are updated
to have a type attribute.