PRD-4526:  Cleaned up formula editor logic to handle embedded formulas and

added ability to specify formulas in the parameter fields.  Fixed numerous issues relating to the building of the formula in the formula text-area.

Fixes the following:
- Allow for embedded formulas (with parameters)
- Allow for formulas in parameter field
- Prevent redundant parameter update event from firing causing all sorts of random issues
- Other bug fixes as it relates to formula editor