Refactor data model to use anchored resource node

Fix #50