add onFail interface for restclient
add onFail interface for response handle and retry action for get and post, but no test
delete test code
Merge pull request #5 from frankswu/master

	add onFail interface for response handle and retry action for get and post method