Add async serialize/parse support

Generated messages now have optional last parameter for parse/serialize
function which is called back when the task completes.
Actual execution occurs inside C++ threads.