fixed methods between Webclient & Internal server

Less codes in several methods in REST Service & Consumer, added
JsonTuple class to enable Tuple data transfer via Json in REST.