s3-waf: convert READLINE into a subsystem.