Turn coke from a fn to an object, use init as the original function. attach utils, generators, middlewares and libs to coke