Moved promoteDemote to separate thread.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>