Ark
Closes #2607 - added toJSON method to tag model - parent_id attribute is replaced by parent - integration tests will expect parent as an attribute