Add a C API and a second constructor for Sampler to support the factory ...

Hi Brendon,

I thought I would at least make you aware of some simple additions to DNest3 to support interaction with C code (via callbacks) and implementing creation by factory for the model classes. Please feel free to incorporate this if wanted.

Keep up the good work!

regards,
Ben Aylott