Prepared base, main, and search templates

Also created login template, but it's not ready for testing.