noticelogic plugin

Rewrite of noticemove by Timo Sirainen. Now it prefers the active window.
Should only affect incoming notices, not /notice sends.

Notice message destination in preference order:
* active window if the sender is involved (channel or query)
* query with the sender if open
* channel you are joined in that has the sender in (first found is used)
* irssi default