Added the controls for blocks in Karel 3 Level 9.
Moved common functions that check for required blocks from turtle/levels.js to level_base.js, so that other apps can access it. Also updated Karel 3 Level 8 to require calling functions.