Token generation bugfix and microworkers token validation rework.