Move log formatting to clientside.

Way too complicated to serialise values across the wire & have them log
correctly, as JSON does not support all types. e.g. regex, dates and
undefined.

e.g. console.log(undefined) would print as null on the server.