Added scan_apl / routine_entries.
APL scanning should occur before time elapses, not after.
Merge branch 'master' of https://github.com/llxibo/LuaCL