Tweak library structure, set to use karma for browser testing