Result html page improments

Hey, please take a look at my pull request.
It covers some small html output issues:
- recalculated open issues' count dynamically after click on a problem checkbox.
- added a few careful specs for Analyzer#output_html_errors (no FS-writing, mocks only)

Thanks.