Fix plist test
Remove useless code
Make struct pkg a proper structure
Adapt pkg_get
Adapt pkg_set
Remove dead code
Finish adapting pkg_get
Adapt pkg_is_valid
Finish converting struct pkg into a proper structure
Last minutes fixes