Context-aware configuration system