Moved command line parsing to the Params singleton, which doesn't do anything else anyway. Added explicit include<stdexcept> to a few files using it.
GCC 4.7 compatibility changes. Cleanup in CMakeLists.txt. cpplint.py added as custom target.