'Return all the available notifications in a list. Marks them all as seen
as it returns them. Also removes timed out Notifications from the queue.
Returns: A list of Notification objects'

def get_notifications(self, remote_ip=u'127.0.0.1'):

    self._errors = [x for x in self._errors if (not x.is_expired())]
    self._messages = [x for x in self._messages if (not x.is_expired())]
    return [x.see(remote_ip) for x in (self._errors + self._messages) if x.is_new(remote_ip)]
