hides secondary action buttons when no cards
validate front/back on cards
creates edit template for decks

fixes bug where submitting a deck with errors produced a fatal error
updates card spec to reflect validations