make a passwords table so that we have a history

this also fixes a few authentication bugs
Merge pull request #21 from txbits/viktor/passwords

make a passwords table so that we have a history