initial modular rap_server

this needs some testing