Create ids on the fly rewrite.
Made contextual lookup work again.
Merge pull request #72 from sourishkrout/master

Rewrite to allow transparent ID generation.