Report the number of failures and exceptions

In order to indicate the broken tests.
The 'Fail:' string is added for failed tests
Fix for return code
Removed unnecessary shell string
QForm html-code not outputted in the cli mode
Passed tests are not displayed, only failed.

It is hard to find failed tests in travis-ci build log with a miriad of "Pass:" lines.
Merge pull request #138 from olegabr/bug-TravisTest

Report the number of failures and exceptions