Decouple mwlog() from the client

Should make it simpler to move logging into the server.
1 job for master in 7 minutes and 30 seconds (queued for 2 seconds)