Added Rest.class.php

Added the Rest.class.php