Added REST infrastructure.