Finally! In new APP: Automated presence based Arming/Disarm/Intruder Alert and Reminders

JD/wkp: I have a Groovy SmartApp that today calls a webservice which returns JSON that I parse to determine when to change location mode. To prepare for the transition away from Groovy, what will I need to do in the newApp model make this work? What threads should I read to prep?