Visitor interface implementation.
Add raw data to hook parameters.
Fix context error with moving visitor instance creation into separate factory object.
Merge pull request #322 from czolnowski/visitor-interface

Visitor interface implementation. Fixes #5360