proof of concept flask like decorator for 'routing' commands and automatically setting up listeing for them