gist: init gist

Now just a lame implementation for partial gist API, but still working for #2.