optional dependencies should be loaded in a try-catch so they are actually optional
Fix #1122
Reversed the order of `extract`'s parameters, to match the precedence set
by other functions. Fixes #1119
Fix contrast percentage handling, fixes #1144
Merge pull request #1145 from Synchro/master

Contrast percentage fix for #1144
HSV support for #1143
Merge pull request #1147 from Synchro/hsv

HSV support for #1143
Better implementation of luma
Merge pull request #1148 from Synchro/luma

Better implementation of luma
refactoring - add a env type to better organise its properties
Remove `dist/*` from `.npmignore`.

This comes in handy when managing a project’s client side dev dependencies via npm.
add jam definition to package.json. Fixes #1146
Provide fallback 'mime' object that covers 80% case of data-uri usage.