fix #1649

Fix for removal of staticExpects in PHPUnit 4 by introducing 
Test_Router_Mock.
Merge pull request #1648 from MyMedia/1.8/develop

\Log::_init() - Extended determinig name and location of logfile by new ...
some log cleanup. related #1648
Merge pull request #1651 from CodeYellowBV/1.8/develop

fix #1649
make sure html_tag() generates compliant HTML. closes #1616

modified due to lack of response of the original PR author.
avoid deadlocks which empty cache files, closes #1632

this should not happen, but just in case...
Improve cli backtrace. closes #1634

rewrite due to coding standard violations and lack of response from the
PR author. also added missing new config key