remove unnecessary imports

These imports aren't compatible with the current eups table file
(require 'base').  In any case, they're not needed, and probably
bitrot.
Prefs: remove stray line that causes compiler error
ups: require meas_algorithms

Because we're a meas_extension.
ups: add build file.
doc: fix doc building
gitignore: add TAGS
psfexAdaptors: fix scribbling for size differences

The prefs weren't properly scribbled on, since sets.size() may be
different from prefs.ncat, resulting in segfault.

Also put scribbling into an RAII struct to remove code duplication
(in the catch and outside).