General Utilities thats needed to roll your own API with invite codes, api key generation, etc.
Use of this code is at your own risk. It may help you it may not
Plays nicely with nolim1t/node-mongo-with-heroku
In another library file
generateinvitecode = require('./apicommon/generateinvitecode.coffee').create
generateapikey = require('./apicommon/generateapikey.coffee').create