Blepharitis is a condition where glands in the eyelids are not functioning normally. They become plugged and instead of putting out their normal clear, oily secretions, they put out thick, toothpaste like gunk.
The best treatment for this condition daily lid scrubs combined with warm compresses. I like to use baby shampoo for lid scrubs. In the shower, place the shampoo on your index fingers, close your eyes, raise your eyebrows (to stretch the skin on you eyelids) and scrub back and forth along your eyelashes for 3 to 5 minutes. The hot water in the shower helps to soften the plugged oils in the glands while the mechanical scrubbing with your soapy fingers removes the oils.
Should your symptoms get worse, your vision become significantly affected or things just not get better in 3 weeks or so you should have a complete eye examination by your local ophthalmologist to look for other, less common, causes of your symptoms.