Bootstrap password pages

This fixes #349.

I'm going to add a fix for #350 to this PR too but I'm opening it early as comments are welcome. It shouldn't be merged until I've added the fix for #350.