add optional version to get.gist

Optional parameter for get.gist to fetch a particular version (does not change interface).