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

- add test cases for uitest/API/composeemail
- add demo cases in uitest