Various fixes and improvements found by LLVM's scan-build

As reported by http://dev.yorhel.nl/ncdc/bug/64
static: Update to latest versions
Version bump + Changelog update for 1.19.1
Add support for bracketed paste mode + confirm-to-send multiline strings

Slightly modified patch from http://dev.yorhel.nl/ncdc/bug/66
Send bracketed paste mode code to stderr + workaround for screen

For some reset the reset code wasn't caught when send to stdout. The
workaround for screen was found while looking through the weechat code
to figure out why the reset code didn't work.
static: Update to latest versions (+ GnuTLS security fix)

Fix for CVE-2014-3466 - https://lwn.net/Articles/601170/rss
Dont freopen stderr, log to separate file handle

There shouldn't be any other code that writes to stderr, so no real need
to reopen it.

This fixes the bracketed paste mode that I broke in an earlier commit by
having the codes sent to stderr. Since stderr was mapped to the log
file, the codes would never reach the terminal and the bracketed paste
mode was simply never enabled.

This fix also makes me run into the vim issue described at reply 7 of
http://dev.yorhel.nl/ncdc/bug/66 - I'll have to look into that again.

For some reason the display of non-ASCII characters in the line editing
ui is broken, too. I'll look at that in a bit.
ui_textinput: Fix display of non-ASCII characters

...well that was a trivial bug.