JPM/TS: WeightlessTestCase improvements

- loopingReactor context-manager gives an object signaling reactorDone;
  either through timeout or an error occurring.
- Improved referenceHttpServer to not block indefinitly on malformed /
  incomplete requests
- Fixed bug in referenceHttpServer
JPM/TS: removed comment.
JPM/TS: WIP.