Handle Gist URLs for past commits

Past commits are represented as {original_id}/{version}