First step in updating code to use Estimote API 2.1 (work-in-progress).