Build speed improvements.

Refactor build tasks to use shared functionality for iterating files matched by filesets, and for writing content to files.  Use a state file to track whether comments have been removed from shader source.
Make sure the build directory exists before running any of the tasks.
Merge pull request #569 from AnalyticalGraphicsInc/buildSpeed

Build speed improvements.