Better keepalive behavior

Restore keepalive between browser and node; don't use keepalive for the
connections between node and R.

Also, implement HTTP keepalive timeout of 45 seconds.