A little tidying.

I have worked out why applications are crashing- the X server isn't responding to our EWMH requests, I am looking into this now on another branch.