Merged control and menu condition code

The code has been merged, but transference is not fully functioning. Some cleanup is still required.
Seems to me like the only other way is to encode it directly into the epub. Do you think that's better or is there another way you've thought about doing it?