. . . . "(2)A municipality and the Crown may enter into and perform agreements on such terms and conditions as may be set out in the agreement," .