Convert jail_exists to the new world
Fix typos
Fix yat
Various fixes allowing a reference jail to be created