Moved express cookie sanity check

Created a async waterfall in the index.js file to handle all the sanity
checks that need to clear before starting the server. Moved the express
sanity check into this construct as well as the DB existence check.