Fixing broken autocomplition in IDE.

As described in https://bugzilla.mozilla.org/show_bug.cgi?id=1005083 the
nsIAutocompleteResult implementation is missing a method to work as intended.

Fixes issue 7645

Signed-off-by: Alexei Barantsev <barancev@gmail.com>
Fixed options validation on options reset in IDE. Fixes issue 1050

Signed-off-by: Alexei Barantsev <barancev@gmail.com>