Some refactoring. haflow.entity.Module and related classes removed.