This has been suggested before, and we all pretty much want it.
I would recommend having there be tabs, but default the chat to "ALL", such as our current chat on launch. We could then change tabs accordingly, and maybe even have a notification if someone sends us a tell while we're in guild chat. (Think: A color-coded exclamation point above the tab, similar to the forge one) Have those notifications be toggle-able in options, in the same area as the set-player-name-visibility options are in. (Forgot their location)