Fixes to creation of new cards.

We no longer create them as the last card but after the current card. We mark the stack as dirty when a card/background is added. We show errors when deleting them using the UI.
Track Forge HEAD.