Retrieve Measurements Iteration #3

Created a JSONArray to loop through.
Merge remote-tracking branch 'origin/retrievemeasurements' into bluetoothmeasurements