Factor out 'asIO' function.
Make modifying the karma file thread safe.

Path is in MVar, open file only in withMVar.
Add config for redmine.

TODO: Update documentation.