Testing, subject field and bug fixes

This pull request contains:

* The tests from the `testing` branch (will continue with new tests)
* Set the value of the subject field in the compose window
* Bug fix for when there was no text/selection available to search the quicktext by on Tab (when cursorPosition is at 0).
* Bug fix related to getListenerCount() being deprecated