s3-spoolss: rework some form functions and add form_by_string functions.