add a very crude recording feature
restructure using express modules
make port configurable
add a timeout to zap and retry if the zapping failed
implement new state-call in fe app
remove dupl file