Fix Trello Auth issues, which actually simplifies things.
added promises to cards function
cleaned code