Partial generalization of generate_terrain

Work in progress!
Merge branch 'master' of github.com:dmazin/asteroid-tycoon