Allow `+` and `@` before a channel name as well for linkification

useful for /whois
Merge pull request #327 from glowing-bear/channelregex

Allow `+` and `@` before a channel name as well for linkification
Scroll on resize

main application of this: opening the keyboard on mobile devices
Merge pull request #328 from glowing-bear/scroll-on-resize

Scroll on resize if at the bottom of the bufferlines
Catch broken UTF-8 to enable loading of buffers with broken lines
Merge pull request #329 from glowing-bear/invalidchars

Catch broken UTF-8 to enable loading of buffers with broken lines
Replace all non-ASCII bytes with "?" in case of broken UTF-8.
Merge pull request #330 from anders/invalid-utf8

Replace all non-ASCII bytes with "?" in case of broken UTF-8.
Wrap IPv6 literals with brackets. Fixes #323.
Merge pull request #332 from anders/fix-323

Wrap IPv6 literals with brackets. Fixes #323.
Add buffer title to alt text

Fixes #333
Add option to show seconds in timestamps.
Merge pull request #335 from kramerc/seconds-in-timestamps

Add option to show seconds in timestamps.
Merge pull request #336 from glowing-bear/title-alt-text

Add buffer title to alt text
Trim long buffers

Fixes #338
Rename 'lines' to 'lines_per_screen'
Merge pull request #339 from glowing-bear/trimlines

Trim long buffers
Revert "Set port variable instead of placeholder"

This reverts commit 6b4d2fddbb5859c2ef0ebdcbf133b21006daeffc.

...because it didn't work. I just got an empty box and the variable wasn't set
Set placeholder text to "Port" instead so it is clear what is needed here
Don't trim unread lines

Also fix read marker after trimming