Renaming cards.coffee to database.coffee to be more accurate on intent.

Adjusting to proper class-based/require for the database as well, to
allow for future improvements and virtualizing the datastore API so it
can switch more freely between nedb and mongodb later.