Fix gallery link option

Galleries should support three link types:

* Attachment Page (default): [gallery ids="1,2,3"]
* Media File: [gallery link="file" ids="1,2,3"]
* None: [gallery link="none" ids="1,2,3"]
Merge pull request #947 from leoj3n/gallery-fix

Fix gallery link option