puts() should emit a newline after caller input.
Let puts() add the final newline.
Fix up malloc implemention.

In the sandboxe ABI _sb_heapbase needs to be a capability, but changing it
would break some existing sandboxed code.  Create a new _sb_heapcap and
initalize it from c0 and _sb_heapbase on the first malloc call.