added previewDialog component

added messaging package with request handler
moved app events to messaging package