put NODE_ENV in config
save remoteAddress in couch doc
fix client route
add logging