model: Add automatic object identifier computation support
Add support to automatically compute identifier in the following object models:
Directory, Release, Revision, Snapshot.
If the identifier is not provided as parameter, it will be computed when the model
is initialized.