Add conditionals in format strings

Idea from #150. Syntax `%{if COND then A [else B] }`. 
I used `expr.c` for parsing. `format_print.c` was modified. It uses `gbuf` now: I think, it is more convenient.
Id's in `COND` can be options. Any unknown id is `false`. Id `stream` checks if `is_http_url( %{filename} )`.
I haven't changed/removed/added default formats yet. 
I don't see how it can be avoided, unless `opt->get()` returns new string or something like that.
Does adding comment `/* yep, I know declaring const-size buffer in this case isn't safe, but there are no other possibilities except rewriting options getters in safe manner */` help?