Fix query notifications on first connect

Fixes #284
Clean up buffer model a bit

* use type local variable to determine whether to indent
* local_variables is not used, don't export/save it
Merge pull request #292 from glowing-bear/fixinitialhighlight

Fix initial query notifications
inputBar.sendMessage: remove unused variable
Fix nick clicking

- move to correct scope
- use Angular input model instead of accessing DOM directly
- nicklist has changed, adapt to that