Initialize currentUser and search api only once for every Github instance