Added parameter assertions to window code.
Moved topic handler to per-server instead of per-channel.