Fundamentals of Curvilinear Ferromagnetism: Statics and Dynamics of Geometrically Curved Wires and Narrow Ribbons.