Move some code to new files.

Part of ongoing process to get frog.rkt well under 1,000 LOC.