client logging functions

added remote_log function
JSON parse failures automatically logged to server
clicking on client log line offers to upload line to server
automatic trimming of client log (using config.log_trim_max_age and config.log_trim_max_lines)
eliminated old init function from pageedit