File Clear-up and Card Types

Placed function, button and card codes in their own folders as the total
number was becoming unmanagable.

I've been doing some work offline, finding out the total number of rule
types we've created. Now that that's done I've started to implement the
code needed to retrieve any data kept on them.

Basic card stats will be saved directly onto the card information but
the various rules that apply will be a list of sub rules I can string
together.