Auto deck import

also includes a lot of refactoring and cleaning + some minor features around the decks tab