Change structure a bit, add requests and separate common sources

Ugly middle-work, don't even read (will rebase with more)

Signed-off-by: Paweł Szewczyk <pszewcz2@mion.elka.pw.edu.pl>
Start requests handling implementation

Compiling, but need some debug.

Signed-off-by: Paweł Szewczyk <pszewcz2@mion.elka.pw.edu.pl>
Fix implementation of request handling

Simple receiving and handling requests mechanism
seems to work properly. Need better
memory management.

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