Change InstanceKeys to take a namedtuple for context
remove app references from validators
Also fixes a small bug in validation (yay tests!)