Fire callback when document is created or updated. Fixes #65