Change BufferNew signature:

int BufferNew(Buffer **buffer) -> Buffer* BufferNew(void)

Since BufferNew uses xmalloc internally, checking its return value seems redundant.
Buffer initialization can be done in a single line now. Semantics similar to Map, Set and other data structures.
Merge pull request #337 from awsiv/master

Change BufferNew Signature