Commiting little changes
General refactor

TCP connections are now handled properly, and request router is more
robust