save childRows earlier

this allows accessing saved child rows in _afterInsert, not only
_afterSave - because _afterSave is called after _afterInsert
improve update script: create .gitignore file and add to git
Merge remote branch 'github/master'