refactor base class

collapsed Resource + RESTfulResource to RESTfulResource base class