Added Javascript unit tests

- added Jasmine library
- added Sinon library (for stubs/mocks)
- added test.php in root to run app tests
- added a few unit tests for core and files