Upgrade riemann & influxdb, and refactor the bash scripts.