Add basic webapp options
Split server into its own package.

Move handling of gist via cli into its own file.