Refactor default screen resize into SilverStripeContext

Rewrite of fix for https://github.com/silverstripe-labs/silverstripe-behat-extension/pull/65

This has been run on my cms fork and it seems to work fine.

https://travis-ci.org/tractorcow/silverstripe-cms/jobs/32506291