Added preliminary wpad support.

Fixed urls so they will actually return a 404 page if url is not valid.

Added very basic wpad support.

Added content-length to headers on nearest and wpad queries.