added modules

cookie, couchbase, socket.io and changed the app.js structure
added modules and changed app.js structure