I don't use classes in my JSON-RPC calls, so I made them optional

Couple other minor changes

1) `<?` to `<?php`

short tags are off in most environments

2) There are a lot of `print`/`echo`/`print_r` in the client code? It makes the output really noisy so I removed them. They should probably be behind a $debug option.