event buffer switched to deque with maxsize ++

+ several threaded mode fixes. Seems very stable now.
+ iosync request methods can now block until the response is received
from iosync device.
+ timer and kbevents demos updated to take advantage of api changes.