[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>