Changes for version 2.0 of the library and sample app. This version replaces a bound Service approach with a simple counter approach. It also makes the library tolerant to device rotations.