Update example resource to follow REST conventions

* POST creates an entity with a server generated id.
* PUT updates an entity with the given id if an entity with that id
exists. Otherwise, it returns 404.
* DELETE deletes an entity returning 200, or 404 if an entity with that
id does not exist.