Added new callback options: beforeOn, afterOn, beforeOff, afterOff. Added new options to documentation.
Merge branch 'refs/heads/master' into gh-pages