Resolved the problem of focus being lost from the chat input box, on clicking upon a nick.
Always focus on chat input after auto completing nick

when a nick is selected in a chatroom.
Adjust chat logs scroll position properly when window is resized.

This solves a UI issue in mobile devices:
When the window was resized to show the soft keypad, the scrollbar
which was at the bottom shifted upwards.

Fix was applied to the updateHeight() function to resolve
this issue.
Fix attaching way point handler to chat logs on initial load.