Gun mountings permitting recoil or return to battery