Improved callback register
Merge branch 'master' of https://github.com/Exsul/ed