Feature/deck card functionality

This PR implements the card form on the deck view so that an instructor can add a card to the deck manually. This also includes miscellaneous cleanup and deck view bug fixes.

Note: to test the functionality, make sure you log in as an admin before going to the deck view (i.e. login to /admin first).

@jazahn please review