Fixed bug in how packages were stored, also included zfs_ip_priority handling.
Fixed unit tests.