Regroup user related functions in `inc/user.php`

 * log_user_in (from init)
 * check_anonymous_view (from init)
 * require_auth (from functions)