uildings, building or fire limits, use and occupation of buildings and other premises, protection of existing buildings, fire escapes and other life-saving devices, segregation and licensing of trades dangerous by reason of fire hazard, and all other matters relating to fire prevention and fire hazard.