Added automatic creation/deletion of relations in addRelation() methods of models.

Very alpha, needs more work.