Re-implemented acount client as restful client