Worker globals removal

This PR:

- removes the `_currentUserData` global from the worker, and moves its logic to `tkWorker.currentUser`
- adds a `TkWorker#closeSession` to avoid logic duplication across the worker script code

Suggested reviewer: @Standard8