Added support, with Jamie, for ensuring that numeric equations do not result in Infinity or NaN when being translated to javascript.

Wrapped statistics and notifications during save entry to ensure that any errors thrown after entry and order commits do not cause submission to fail.