Retrieve grunt-pages version from package.json

This resolves issue #27. I also refactored the logic to be more readable. I plan to do more refactoring in the next few days and get more unit/integration tests in place.