Implemented the full card manipulation functions

interface/get_card.php is no longer needed; we use a hidden template in the page instead