Stateful RESTful Web Primitives