Fix a couple bugs.

Reading input needs a string-port; style change needs to happen earlier.
Modularize.
Full-fledged editor is still half-baked.

Fall back to simple text input for card names till we get it polished.
Copy card button.