Allow custom memory allocation callbacks on buffer

Forked from txdv@memfuncs4, see #73 for discussion.
Merge pull request #76 from jmendeth/memory-allocation

Add custom memory functions
Merge branch 'master' of https://github.com/hoedown/hoedown
Fixed hoedown_buffer variables