Node js framework  - request routing & control flow via JSON