Add put and delete method in restlib

Signed-off-by: Denghui Huang <huangdenghui@gmail.com>