uri decode: fix for warning "use of uninitialised value"

This patch add check in evhttp_decode_uri_internal() that next 2 symbols
are exists in array of chars for decoding, if don't have two next 2
symbols don't try to decode '%FF'
uri decode: changed the test for the existence of the next character

Fix for 64b6eceaba1a4

More info here
https://github.com/azat/libevent/commit/64b6eceaba1a40ab0b175fa9fd9329d3e978ce6e#commitcomment-2714685
Move prototype of evhttp_decode_uri_internal() to http-internal.h

Make it non static, that can be called from tests
Test: decoding just part of string with evhttp_decode_uri_internal()
Double-check next timeout when adding events

When resuming the system from a suspended state, the ev_timeout field
of a scheduled timer event may be in the past. This leads to
unexpected behavior when scheduling a short-duration timer event
immediately after returning from suspension, because the new event
does not land on top of the timeout minheap and so the event loop
(blocked on a possibly long-duration timeout) is not notified.

This patch checks for this condition and, if it obtains, notifies the
event loop.
Make --disable-libevent-regress work again
build test/test-script.sh on systems with a less-featureful $<
Fix a typo in a comment in buffer.h. Spotted by Alt_F4
Merge remote-tracking branch 'origin/patches-2.0'
Merge pull request #47 from ppelleti/https

HTTPS example adapted from Catalin
Specify return behavior in header for evbuffer_pullup() in corner case

Function returns NULL when told to pullup more data than exists
Merge pull request #75 from altf4/master

Header update to specify evbuffer_pullup() behavior
Do not build strlcpy.c when it will have no code.
Merge branch '21_empty_strlcpy'
Add an environment variable (EVENT_DEBUG_MODE) to run unit tests in debug mode

Not all tests currently pass with debug mode on.
Remove http_struct.h usage in sample/https-client.c
Another tweak to https-client.c
Add a test with an active_later event at event_base_free time.
Merge branch 'master' of https://github.com/libevent/libevent into https
https-client: code cleanup