Install and remove all rpms, including dependencies

This also installs test dependencies if use_tests_requires
was set to true.

Change-Id: I980dccb02ff29ff5267c2cf8744091e71d94233a
Refs: bug #1187912
Merge "Install and remove all rpms, including dependencies" into stable/grizzly