added target directory to .gitignore
refactored tcp server for handling external api actions