Continued adding function to convert server methods into client methods
Started adding JSON encoding and decoding on client side