Generalized a lot of functionality and added extension modules for ANR decks and OCTGN