Fix hostmask parsing, ignores, rehash, join/part channel management etc.
Add build script.