add ralloc from mesa as a talloc replacement

Add a packaged stand-alone version of ralloc from the Mesa project to
be used as an easy replacement for the GPLv3 licensed talloc from the
samba project.

Functionality was supplemented as needed for mand.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>