[completes #54470534] Fixes for running on EC2 instance in production

Add capistrano deploy scripts and required code to run a headless
browser in a production env.