trim module feature and bugfix (https://github.com/alibaba/tengine/issues/368)