tests: fix a memory leak revealed by libsolv commit 0804020.
Add .baseurl getter to Python and C APIs.
tests: add test-case for hy_package_installed()
py: add 'installed' property to hawkey.Package