Moved RegisterThread to its own folder.

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