General purpose iBeacon utility