From http://tamaspiros.co.uk/2013/06/27/contact-manager-written-in-angularjs-express-and-mongodb-episode-1/