Fix implementation of request handling

Simple receiving and handling requests mechanism
seems to work properly. Consider something other
than vector to implement buffer. Need better
memory management.

Signed-off-by: Severus <pfpawelec@gmail.com>