Don't make "restore_initial_function" appear so prominently in the
toctree of the reference documentation.
For now, only allow brian units for preferences (don't import numpy and
scipy -- this clashes with doc generation where we mock scipy)
Refactor generate_references to use a class and avoid excessive
re-generation of the reference files.