Added support for multiple generation of xar, and separated unit tests
for library and application package types.