Add support and notes for providing callbacks as data attributes. Add tests for callbacks. Closes #21