fixes #194
- setting typing status only if textbuffer contains non-whitespace chars
- setting our typing status to false after >=5 secs of inactivity
- setting remote typing status to false after >= 15 secs of inactivity