Enabled Spring Security. Major refactoring of template code. First attempts to create custom login form.