Moved the address space into the handler object in order that each connection gets its own address space and multithreading issues can be avoided more easily. Added some additional documentation and hints.