code review: repository: add comments to functions, sort some functions by type
Move auth framework from UI to core
force reload page after logging in
rename try_login to tryLogin, add setUser method - to use in task manager
taskmanager: set current user and task pointer at AsyncTask constructor
repository: make clone and delete non-static, use AsyncTask::$current as task pointer