Merge pull request #4 from emcrisostomo/master

New features: scratch codes and credential repositories.