Large protocol refactor and relicense under the GNU GPL v3.