don't show preview button when the preview is not supported

Removed preview button when the preview functionality is not supported. Changed the Download button to a View Resource button for files that the browser can open itself. Fixes #256 and #418.