fixed some bugs for generic addEventHandler and changed attr to raphAttr
about to clobber NPConversions.cpp
tons of bug fixes, test pages now work stably on ubuntu using clean pull from github