Adapted silverstripe 3 compatibility

added composer.json 
updated code to silverstripe 3 compatibility 
updated readme.md