Moved set_password code and specs into identity code and specs; Added some comments