Refactoring getOptions

Here is an example of something that I think would work for the `grunt-karma-coveralls` plugin for issue #22.