Fixed code so that GMF now works with IMA SDK beta 7

Fixes issue #49 
I refactored it and it's now reflected in the pull request.