cbuf simplification

Make cbuf and cbufp interfaces more similar. 
* cbuf_free() takes a cbuf_t instead of void* as its argument.
* cbuf_t contains a tmem flag to indicate transient vs persistent.
* asm cstub prolog/epilog saves and restores input variables on the stack.

Tested with unit_cbuf.sh and unit_torrent.sh.