Add RPM packaging

Add a good bunch of packaging for RPMs, fix up how tests are run so they are self-contained.