Bug 874155 - [SMS] Handle the edit mode without using the location hash - r=gnarf

* Removes #edit url and replaces with startEdit and cancelEdit on ThreadUI and ThreadListUI

Closes gh-10078
(cherry picked from commit bd9c7ed5e3d07c36312e8f7d0d076d28261a8d28)