Integrate more NUL-safety

Track Forge and Leonie HEAD. We're still not quite where we'd have to be to not see NUL bytes in strings as the end of the string, but we're getting there.
Implement Stacksmith 'download' command.

Only have a Mac-specific implementation right now.