Theory of Lubrication. With Applications to Liquid- and Gas-Film Lubrication