Implementation of the password storage

Pretty basic stuff.
All of the data stored now.
Added some logging