Refactor the Anchorify object
fix tests
Ensures uniqueness of ids in the whole document

Fixes #3
Prepare 1.0.4 release