Mention and emoji popups should only occur at start of line or after whitespace

This PR enhances the emoji and mention atwho regexes to only trigger at start-of-line or after whitespace, fixing #157.