Added script for couch1.2.0, added persona login (refactored to use ejs and added sessions)