Use name from definition block

Fixes handler calling problems related to naming inconsistency.
Merge pull request #4 from seegno/bugfix/extension-naming

Use name from definition block