Update .gitignore and main index and login pages. Rebase-ready.