Update to SilverStripe 3.1

Static exporter will now work with SilverStripe 3.1.x. There's a few things to note: mkdir() fails on windows platforms, fopen fails to get external files.