Fix construction menu

Fixes #6228
Both the hotkey issue and the erroneous highlighting issue where constructions would be highlighted even though you couldn't perform them (because there was no terrain nearby you could use them on).
Also a bit of random cleanup, this was a messy, messy module.