Refactor passwords module.
Update gruntfile and package json.