Code from api_quality branch. Adds API functionality regarding requesting fit
results of the pulseheight distribution. Compares the fit results with
reference values stored in the database.
Merge remote branch 'origin/master'