core: Add rt mod and add the new scheduler code