Added method to generate a new uid for each model, as the uid coming from the browser is "new" and overwrites the one generated in the constructor
Authored by: tse 2012-03-03
Parent: [r5250]
Child: [r5252]