Initial commit
Rewrite the x11 api module