Load avatar in header via PHP

* fix #7484
* use UID, css, and div instead of span
add avatardiv-shown class to bring back mobile style
Merge pull request #7749 from owncloud/load_avatar_header_via_php

Load avatar in header via PHP