updated to only load current_user into javascript if someone is logged in.  Updated logout redirect to check if there was any activity before redirecting.