Move print backend, and have it use stream_write().
Remove obsolete xatoi.
sd: Remove unnecessary delays.
sd: Minor code cleanup.
Add command and output logging functionality.
logging: Make "on" keyword optional.

This makes it somewhat more intuitive, while still keeping "correct"
syntactic sugar.