added app service for measurements, added measurement api controller