Improving cpp2macro.py conversion script.

Added better option and error handling, as well as '--replace' option to
overwrite existing .spdl files.
Cleaning up .cpp files before conversions.
Converting several .cpp files to true .spdl files using macro constructs.