Added first unit tests with Karma

* created package.json with dev dependencies
* added karma configuration file
* added test files
* added gitignore