[Issue #13] Extended scaffolding functionalities. Fixed a bug which
swapped the flags of allowNull on models.