Removed ddebug.js (will reimplement bits later); new messagebase constraint code & passing; deleted depreciated code & implemented constraint testing & routines, though it needs more modularity again