Packagekit bridge getPackages() method and unit tests.

Hi Javi,

Here's the pull request for my latest changes to nodepackagekit.cc and the associated unit tests.

It looks to me like this will result in too many changes, going all the way back to Oct 29, 2012.  Only the last one is important.

Issuing pull request to see what happens...