This free add-on allows you to quickly create and manipulate layers in Blender’s texture paint mode. You can texture paint entirely in the 3D View with the full functionality of layers, while nodes are being generated behind the scenes, and you don’t have to go through the boilerplate of arranging and rearranging nodes to paint on different textures. Tested in Blender Cycles 2.79
Download the latest version on github: