fixing layout for test page
adding a test dialog with form elements
fixing a bug where transitionend event handler would be triggered after any transition stealing focus back to the initially focused element
- implemented focus cycling through focusable elements when it reaches
  the last element within the dialog;
- simplified event handler's attach/remove logic, no need to remove all
  handlers on destroy as we only attach to service elements which will
be destroyed anyways;