Adds buffer library & fixes some memory leaks

I added buffering of requests & responses -- to compile the new version:

    $ git submodule init
    $ git submodule update
    $ cd vendor/buffer && make && cd -
    $ make

I ran this under valgrind and it looks like all leaks are gone in either scenario of responding with a 200 or 404.