Adding an API  endpoint that lets you specify fields, bins etc

This adds an API endpoint lets you specify fields, whether they are binned or not, and the bins to use if they are in fact binned. This is the start of getting something consistent for all the fields. 

This adds numpy (we'll probably use this later as well) to do the binning, so that we can do all the field values at once.