Merge pull request #12 from uiri/staging

Persistently store cookies. Serve gifs locally. Make index generated from template. Separate out javascript.