Optimize threading model.

Fix generating inlines.
FilterEditor creating.

Fix bug of handling streaming elements.