Merge xchat r1525

Fixes possible crash
Python: Add support for attributes in hooks
Python: Use keywords for attributes in emit_print()
Python: return hooks with PyLong_FromVoidPtr

Fixes #685
Move optimization settings from all subsequent projects to hexchat.props
Replace search window with a searchbar
Replace search window with a searchbar