Introduce package tests.

Includes a complete repository for use with yum and apt-get, and tests the whole package promise chain, right down to the resulting installed file.