Hide contents and validation links for deleted versions (Bug 855894)

From [Bug 855894](https://bugzilla.mozilla.org/show_bug.cgi?id=855894), this will hide the contents and validation links for deleted versions in the app history section. It will also raise a 404 if the file attempting to be browsed has had its version deleted (rather than a 500 with traceback).