Added basic tests to existing static API
OOPed it. A very basic API, but splits out concerns a little.
Merge branch 'master' of github.com:php-loep/color-extractor