Log macro

this branch contains 2 changes
- added some memory --statistics
- added a macro for log(_f) statements

I made some whitespace changes to client_protocol too, for that file I suggest adding ?w=1 to the compare url.