slightly adjusted
added support for HTTP OPTIONS method, pt 1
do not abort printing objects when toString() throws
wrong type for thread id. this caused potentially wrong thread ids on 32 bits...
issue #358: added support for CORS