Bug 1009271 - opened window.open dialog link as view activity

- add test cases for uitest/API/composeemail
- add demo cases in uitest
- fix activityclose typo in activity window