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.
Pass js-beautify to icons.py

From Crockford style guide, "If a function literal is anonymous, there
should be one space between the word function and the left
parenthesis"
Merge pull request #5 from manuq/palettes-and-testing-v2

Palettes and testing v2
Merge pull request #6 from manuq/beautify

Pass js-beautify to icons.py
Parenthesized regexp operator per jshint
Merge pull request #7 from worr/jshint-fixes

Parenthesized regexp operator per jshint
Palette, basic styling
Move karma.conf.js to the test directory

So that node will not try to install it when adding the library.