Added thread-safe tasks that will be run by the trema thread.
Merge branch 'feature-threadsafe-tasks' into wakame-edge