Mark old Restraint and Score state constructors as deprecated
use the new ScoreState constructor

close #386
mark old FOREACH macros as deprecated

close #237
fix deprecated doxygen messages
make add various deprecation marks
remove usage of deprecated headers
ridiculous patch fixing various deprecated things

should have been broken up, but it wasn't.