Extracted restlets to separate module so that they can be re-used by tests in other modules.