Add egl capabilities to compositor

This PR aims for integration of EGL capablities to the compositor.
Targets #15.

I'll probably discuss a lot of stuff (e.g. with @TheNeikos) while implementing this, so this PR may progress quite slowly.
It would be nice to have a short note what the hardcoded `1` is for.