Card system branch. WIP.

See commit below to know what's change is about.