Added a method to WindowCompositor RestoreMainFramebuffer which either restores the reference framebuffer or binds us to the backbuffer depending on what is available.. Fixes: https://bugs.launchpad.net/bugs/1036521, https://bugs.launchpad.net/bugs/1036572. Approved by Daniel van Vugt.