turned logmsg & buffer functions into macros. Begin adding http parser.

Better (and faster) logging and buffer writes. Started adding the http
parser funcionality requiring much refactoring. Added more
functionality to Makefile.