Added a check to make sure dynamic ranges are limited to 1 region away
Added multi-tasker for multithreaded task handling

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>