iBeacon client snippets for common operations