Feature/multirequest server

moves the mulitrequest functionality to a gen_fsm for portability.