Project icon now appears on domain login page, if one exists

http://manage.dimagi.com/default.asp?114260
I think
```python
if (project and project.has_custom_logo
        and domain_has_privilege(project.name, privileges.CUSTOM_BRANDING)):
```
is more standard/pep8 recommended