React flux boilerplate with a smart router