Basic cookie-session based authentication implementation for single page application projects (for angular or backbone,) with express, passport, and mongoose.