backend: add server stuff

Signed-off-by: Constantin Musca <constantin.musca@gmail.com>