renamed writeXXX methods to sendXXX. Added sendOK and fixed logging the request on 404 not found