Generate conversion from JS functions to std::function.
Merge pull request #16 from colesbury/functions

Generate conversion from JS functions to std::function.