Pass parameters directly to 'run_compositor()'.
Introduce 'IOCompositor' to clean up compositor code.
auto merge of #1420 : saneyuki/servo/compositor, r=pcwalton

This change compositor code to objective, short scope, reducing closure functions. It will increase maintainability.

Related: #1351.