add POST to /measurements and change metadata to link to the measurement that posted it, also switch some 'has_key' to 'in'