optimize keyboard focus management on dashboard's modals

add license to a11y_tools.js

add tests, some reorganization of js tests

skip "toBeFocused" tests for now