removing some warnings

+ Non-author changes to origial patch:

  * Surrounding trailing whitespace cleaned up.
Minor typo in log message
Clean certain files of trailing whitespace

I'm only going for the low-hanging fruit here, ie the files
with the fewest lines in need of attention. The more heavily
affected files deserve separate commits.

A surplus line was deleted from both atom.c and chunk.c

In socks.c a 'no newline at end of file' was also fixed.
Expand tilde before open log file.
Log request allocation failures

Part of the patch listed here :-
https://trac.torproject.org/projects/tor/ticket/2207

Nearly trailing whitespace was also deleted.
Atom length comment and datatype fixes

Taken from the patch listed here :-
https://trac.torproject.org/projects/tor/ticket/2173
Add a couple of failure warnings

Taken from the patch listed here :-
https://trac.torproject.org/projects/tor/ticket/2173