Reorganize non-gist specific functions.

Better naming of functions.
Rename project.