Added Javascript unit tests

- added karma utility to run jasmine unit tests
- added Sinon library (for stubs/mocks/fakeserver)
- added a few unit tests for core and files
- added autotest-js.sh script
adding code coverage support
Merge pull request #6736 from owncloud/tests-jsunittests

Added Javascript unit tests