Improved nodepackagekit implementation and unit tests.

- nodpackagekit.cc: Retrieves architecture info from the package
id and stores it in the new "arch" field of the package JS objecgts.

- nodepakagekit_test.js:  Uses "arch" field to match package
across the install/remove tests.  Also, made the assertX() messages
more generic.