smalloc: initial commit

smalloc is a simple utility for quickly allocating external memory onto
js objects.