IE pretty print fix
Add primary relationships implementation (and trigger reindex of all records on primary relationship change