make sed() support replacement function, fixes #115
Merge pull request #117 from utensil/115-sed-replace-fun

make sed() support replacement function, fixes #115