basic support for after_fork callbacks.

closes #16