rework installed package handling

- changed the build id, it now contains the epoch and the arch
- add Build::queryinstalled() function, support Rpm/Arch/Deb
- add listinstalled utilities that returns all installed packages
- support package erasing for arch linux
- add new pkg_prepare step for pre-installation work