Add new dpa_user_has_notifications() function to remove duplication.
Add body class when user has pending notifications.
Don't always load the main JS on notification screens
Close notifications popup when clicked outside the box. Fixes #53