[47351445] ensure children are deleted when deleting parent

define some 'has_many' association as composition.
also fix an 'Are you sure' prompt twice issue in development mode.

Signed-off-by: Henry Chen <hchen@vmware.com>
Merge pull request #61 from Henry-CF/bugfix

[47351445] ensure children are deleted when deleting parent