fixing up gruntfile and adding some logic and test cases for reading in config files