Add chat position API.
Actually put the tasks in the tasksByPlugin Multimap (Fixes #1278)