Changed "resolved" IDs to absolute IDs and removed the 'uri' event and instead emit an 'id' event.

Lots of streamlining also.