Added $stateNotFound error on failed lookups (alternate lazy state definition scheme).

Here's an alternate way to support lazy state definitions. I've added a few tests but no docs yet, mainly looking for comment about whether this is a good idea or not.