Add JavaScript to close modal on submit.

Move modal to it's own partial that's rendered by the layouts/_cards
partial.
Move `New Card` button to a new button group in line with filtering and
sorting.