Added test-publish-async.cpp
Added preliminary code for registerPrefix.