Updated module to work with Silverstripe 3.x

Tested this against 3.1 but I'm not aware of anything that should break in 3.0 either.