Moved gallery to be an element.
Made adding putting tso/ in a separate file
To avoid mismatches between the website directory and absolute directories,
things now operate from the project directory.
Also generalized image-to-file figuring.