TextEditor: BaseTextEditor code cosmetics

Namespaces, #include order

Change-Id: I6e865821811c0a53e7ebbe321365cffdde7961af
Reviewed-by: Christian Stenger <christian.stenger@digia.com>