Add password argument to stream constructor
Make Codec and ServerType classes public