Principles of non-Newtonian fluid mechanics