rewrote card caching, added pair pages and pair caching, updated cloud code, added v2 to cloud code