minor: response title generation, realpath usage
hardcore implementation: all-around cleanup
fix: double "disconnection", error reporting