Modified module to work with Silverstripe 3.1

Contains the necessary changes to get the module working with SS 3.1 (3.1.x-dev). Should also work with 3.0 but I haven't tested that. Sorry if I should have done this on a branch or something. Still getting the hang of contributing to other people's projects. :)