Removed test script from docs panel page.
Panel: Made swipe on page content and toolbars close the panel. Take swipe direction into account. Fixes #5458.
Tests: Added test swipe on modal should close the panel.
Panel: code improvements and coding standards.