Improved support for extensions

- Fixes mattmcmanus/node-helmsman#3
- Fixes mattmcmanus/node-helmsman#4
Merge pull request #6 from beaugunderson/extensions

Improved support for extensions