[feature] Add onBeforeElemRestangularized config option

fixes #201
replaces #205
Merge pull request #207 from cboden/onbeforerestangularization-two

[feature] Add onBeforeElemRestangularized config option