Update regex to allow for new sha-ish ids in Gist.

Recently Gist unified all the URLs (which in public gists were numeric
and in private gists, alphanumeric). This made certain flows break but
Gist now should redirect to the proper url if given either the new
SHA-ish id or the classic numeric ID.
Adds spec for classic ids, which are supported
Merge pull request #1 from leongersing/allow-gist-only-sha