Make logging D and T macros into expressions

So they can be used in-line in multi-line logical expressions.
Fix basic bugs in new HTTP server code

All 'rhizomeprotocol' HTTP tests still fail