Bug fixes, JS templating engine

Fixed bug where buttons would not work due to CSS3 transform.
Stack icons still need their CSS overhaul.
Incorporated a client-side templating engine for displaying the cards, as we want to mutate the order of them without doing redundant DOM gymnastics.
UI in view_single_deck

Does not work perfectly yet, still buggy because of webkit-transform property
UI fixed, CSS3 transform bug solved

Cards are now read from array, and array is manipulated in terms of shuffling, deleting top card, putting back in to pile etc.
Fixed a terrible bug in card adder
Commit commit
Merge pull request #2 from kreldjarn/wip-frontend

Wip frontend