Import uri_funcs.js from http://skew.org/uri/uri_funcs.js
jshint
Better file handling wip.
fix links -- except tif images
Merge branch 'master' into document-blobs