lexers: use xpcom categories to locate lexer directories

(integrated from trunk branch change 2297d00 by Todd Whiteman <toddw@activestate.com>)