prettify output of print_knitlog

- fix output if only one message is printed
- remove extra newlines
new util function try_silent
Merge pull request #653 from krlmlr/silent-inline-errors-prep

refactorings