added support for passing handler an an anonymous function
Merge pull request #6 from ian7/master

anonymous functions as shortcut handlers