Add basic palette implementation with unit tests

Unit tests written in Jasmine framework
Setup Karma tests runner

Tests can be run using:

    karma start

and then pointing a browser to the URL of the Karma server.
Merge pull request #5 from manuq/palettes-and-testing-v2

Palettes and testing v2