Added methods for working with the flashcard objects
The added methods handle both the database and in-memory representation of the app
Added id and dirty flag to Flashcard object
Added id and dirty flag to FlashcardSide object
Added id and dirty flag to Deck object