Updated promise handling

1) Promise handler now complies with the new promises handling.
2) Updated viewportSize asyncAction’s to comply with the new promises
handling.