Allow on to take a proc
Merged with latest upstream
Merge pull request #4 from auser/master

Allow for on to take a proc, string, or symbol