bug: trailing whitespace in config lines should be removed

this actually causes wrong passwords to be computed if, for example, you
add a same-line comment to the user, site, or salt fields!
hap2: several changes; see documentation for details