replacing hardcoded urls with flask urls
added support for loading specific versions of gists