Add extension API
Merge pull request #330 from atoum/extension

Extension API