viewer: eliminate print command and use iframe src property for refresh

both of these changes were to eliminate cross-domain errors in desktop mode (where the viewer is running on a different port)