Mechanisms For Access Control And Application-Level Recovery In Context-Aware Applications