Updated for Estimote APi 2.1 (work-in-progress).