Merge pull request #1729 from bcipolli/templates-refactoring

Refactoring templates to each app.
Adding LOGIN_URL and LOGOUT_URL; needed for login_required header.

Conflicts:
	kalite/distributed/settings.py