compositor: Ping surface only if it's not null

Simple sanity check.
compositor: Windows stacking order

Focused windows have a higher z-index.

Closes #99
compositor: Calculate initial window position

Copy window positioning algorithm from the Weston plugin, although it
can't be ported 1:1 right now because I can't get a list of outputs
from QtCompositor.

Closes #100