Revert "Circular import fix?"

This reverts commit f2fbc7566f4426d94b5523c17aa7a6a43c8a450f.
Revert "Use HTMLTemplates to send user email address confirm mail. Also, created log_event helper function"

This reverts commit 652afa1f59b8b4589014e55f07edcf7a365b6e7a.