[CDE-139] fixed preview mode v2

@pamval please review
answering the question in the last pull request:
getPreviewUrl() is being overwriten so that we can test previewMode() without depending on cde-pentaho5 files