Added connecting state.
Added template for channel.
Fixed client crashs and add Util in client side.