Parsing raw URL from gist payload, refactored gist funtions into separate file