Make autotype work in more situations

 The entry title will first be searched for within the window title. If the
 window title does not contain the entry title, then the window title will be
 searched for within the entry title.
Merge pull request #206 from jamesrhurst/autotype-fixes

 Make autotype work in more situations