Bug 1053647:  delete space when reverting an autocorrection and don't in...

...sert space when user selects a word suggestion

update python integration tests (Rudy Lu)

properly clear autocorrect state when the user selects a word