Implement tests (#17)

Created tests for the core functionalities, brand, navbar, and link items. Still a lot of tests to code, eg. action items, menu items, everything under menus, user interactions, etc.

Uses Jasmine.

Also changed a few things in the main javascript file, to reflect insights brought by writing the tests, eg. only zero or one brand.