a207d97
It turns out we still have some backend code relies on the flask app, so revert the change to init_config, and make minor change to create config object for frontend and backend with the same function.
Only allow cancelling module builds in the init, wait, and build states