Add entities.register (closes #2)