Functional approach to nuclear field theory: A schematic model with pairing and particle-hole forces