update microblog.py, tests.py; add templates, .gitignore