Set Content-Type appropriately.

Also ensures that plug=none requests get the latest version without causing a write.

Merge the Jail Update before this.

Ping @jankeromnes.