lots of changes

to summarize:
- a ton of bug fixes
- latest tty.js / term.js
- added a command-line tool called "gfx" which can quickly clear the cache, or show images from shell.
```bash
$ gfx                                                                                                                                                                                                                               
Usage: gfx [options] image-filename1 [image-filename2] [image-filename3]                                                                                                                                                                   
Options:                                                                                                                                                                                                                                   
  -collage : instead of displaying the list of images in separate windows, loads them as a collage in the same window                                                                                                                      
  -clearcache : clears all the cached dom elements in ~/.gfx.js/static/data                                                                                                                                                                
                                                                                                                                                                                                                                           
Example:                                                                                                                                                                                                                                   
gfx a.jpg                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                           
gfx *.jpg     
```