mock.c broken into smaller files

mock.c was getting too large! So three of the
things that could conceptually be separated from
it are separated:

integtwod.c and .h: For 2D integration.
profiles.c and .h:  For keeping the profile definitions.
rand.c and .h:      for doing random operations.