Disable / hide MR edit blob button if cannot edit.

UI changes on the merge request diff view:

- if the user does not have permission to edit the blob, disable the link
- if the blob is not text, hide the link

This is the same behavior as for the blob show edit button. Both buttons have been factored out. 
Perceived complexity for edit_blob_link is too high. [8/7]