refactor
Don't add empty files to gist.
on save, display gist url
on save, add gist id to address bar
remove 'file:new'
save as public gist
don't animate 'saved' element.
read gist if present in url