Add TCP relaying, restructure project