Add helpers, fill in blackjack api scaffolding, and fix up crappy code