removed uneeded options and cleaned code
extracted getGist and renderGist
removed initial html to template file
moved template script to statics
built proper html
improved client-side dom manipulation