Fix special handling of server-side generated javascript function calls.

Needed to handle several special characters (in ReportController) that affected the javascript parsing and/or queries:  backslash, apostrophe, and double-quote.

Fix issue with click through on charts
* Reset the date fields, not clear them.
* Make sure hidden fields are cleared (better logic for xtype matching comparison)
* Ensuring that all form fields (other than dsId and timezoneOffset) are cleared.