Fixed various bits of typing and removed promises typescript interface

* Typescript interface for promises will be part of uProxy/build-tools.
* Assumes new standard for code layout (for ../../third_party/promise/promise.d.ts)
* Better typing for tcp and a typing fix.