implement tdiary htpasswd command (ported from Rakefile)