FieldFactory: Adding tanh, moving generator defines

o Added tanh() function to FieldFactory
o Moved the definition of FieldGenerator classes from include/field_factory.hxx
  into src/field/fieldgenerators.hxx. They are only needed by the factory, and
  this reduces the size of the global header file.