mir: add public method to resize a cogl onscreen

This will internally recreate a new surface with proper parameters
mir: release surfaces on errors