Remove trailing whitespaces from some files
Add another SCGI parser test
Fix SafeLibev cancellation

Previously, cancelling a SafeLibev command doesn't work if
we're already within the command queue processing loop.
Add a faster way to detect whether we're on the event loop thread, using thread-local variables