Major refactoring to make it work with new libdist
Added script to easily test ziryab from console