Add definition method

Sensu uses it to determine extension type.
Merge pull request #3 from seegno/enhancement/extension-definition

Add definition method