The trade of Millwright is concerned with the construction and maintenance of machinery.
Derived from the trade of carpentry, a millwright originally was a specialized carpenter who was trained as a carpenter and as well had working knowledge of gear ratios, driveshaft speeds, and other equations. The "mill" in millwright refers to the genesis of the trade in building flour mills and other watermills and windmills. Biographies of some millwrights who were located in Norwich, England can be found here. Several important early civil engineers were originally trained as millwrights
http://en.wikipedia.org/wiki/Millwright
Edit: A Master of all Trades