add support for passing lua functions back to the C++ side using std::function's.