Fix variable leak
Add component.json, for component.io usage
Expose low-level functions which does not clean up the canvas

Useful to re-use the canvas instance in further image analysis
with other libraries/methods.
Merge pull request #2 from jonnor/low-level-api-and-component-io

Low level api and component io