I really like that design.
We developed a similar idea a couple of weeks ago, when we received our Estimote beacons. Here you can find the blog post about it with the sources, albeit it's a simpler and rougher implementation:
http://andreamazz.github.io/blog/2014/07/01/fun-with-ibeacon...