Added option to update baseline screenshots

- better parsing of grunt options
- some code reformatting