Add the ability to specify a function rather than a string for the command. The function should return a string.
Merge pull request #6 from dzaman/function-commands

Add the ability to specify a function for the command.