Fix unclosed and orphaned markup elements.
Resource contact elements should not overflow the sidebar.
Apply more restrictive selector to date picker styling.
Allow profiles to be ordered by the username and join date.  Fixes #1608.