Replace passwd-user with internal implementation

The code is based on https://github.com/sindresorhus/passwd-user/pull/2
with unused sync support removed.

@chandadharap @sam-github PTAL.