Remove trailing whitespaces from some files

[ci:skip]
Update some build dependencies
Fix some compilation problems on Gentoo.

Closes GH-1261.
Fix a request handling crash on onAppInputChunk

Closes GH-1250.
Fix printing error IDs in the RequestHandler
Update CHANGELOG and credit Jacob Elder.