Added in some utils for helping to extract the rev number from changes to the couch db and some examples on how to update the db from c/c/++. Made the getNumGames() function work and then put tests around it to make sure it never breaks.