Actually copy over the cbs...
Return json string from cb functions instead of object
Run flask in main thread so it doesn't feel neglected