js: Added browser testing for unit tests
- Added unittests to be run inside a Browser. To be able to access the non-exposed functions and classes, a testing bundle will be created, containing the tests (unittests.js) and the items to be tested.
- src/Helpelpers, src/Key, src/Keyring: fixed some errors found during testing.