Added early stopping capability with multibleu.perl (extra commits removed)

Notes:
It assumed utf8 encoding meant chinese character based bleu, which might not be right for other languages.
Nice! But if just moved the code that calls BLEU computation from main_loop into the validation callback, we could merge this pull request.