Adds new option: --error-log-file=file

It allows to indicate a file where all javascript errors are stored
Fixed warnings and errors during tests executions