On algebraic and geometric aspects of fluid dynamics: New perspectives based on Nambu mechanics and its applications to atmospheric dynamics