Feature/lazy load card media

This PR implements a simple lazy loading mechanism on flashcards so that media such as audio and images aren't loaded until they are needed.