Updates for nereid 3.0.4.0

* Uses current_user and current_user.is_anonymous()
* Uses the login signal from flask-login