Woops, check return code of signal() correctly
Send 400 response when we couldn't parse a request

Instead of dropping the connection to the floor
Fix use of unintialised values on malformed requests

Harmless, but valgrind noisy
Send 501 responses for unimplemented methods