Frontend: color error/ok lines, fix yaml encoding