Moves common RestfulTestCase to it's own module.

This is in preparation for larger refactorings to make the test suite
faster and easier to understand.

Change-Id: I86d5be0324cca744b3109989815ef1dc720d1f8c
Merge "Moves common RestfulTestCase to it's own module."