More than 1,000 homes planned for historic barracks