added helpers for login, deck, etc; minor refactoring -vincent