removed duplicate rule engine code and subdir /rules. modified logic for rule error saves. minor code updates in preparation for merge back into dev