Include full path to viewDoc.sh

This is due to 2.0 no longer sourcing bash_init for commands run through javascript in webviews.
Improvements to "LaTeX Symbol Based on Current Word" ⌘\

Always insert the leading \ if needed. Work in wider variety of places by taking the current line as input instead of just the current word. Fixes #46 and #71.
Point to ruby 1.8 shim

Using a shim allows us to catch when 1.8 of ruby is not present and provide other options.

#ignore
Do not try to show non-existing PDF when using TextMate as viewer

Typesetting a TeX file can fail without our tex output parser picking up any errors/warnings, in this case there will be no PDF file but we would previously still redirect the HTML output view to show the (non-existing) PDF.
Fix file scan

Now also works if there is a file (e.g. `chapter1.tex`) with the same name as a project subdirectory (e.g. `chapter1`).

Before, the file scanner would return the directory name instead of the file name.
Run makeglossaries instead of makeindex if `base.glsdefs` exists

Also add a basic parser class (MakeGlossariesParser) for this command.
Set default encoding (in python script) to UTF-8

This is required when building LaTeX files with non-ASCII names.
Update how we ensure generated labels are ASCII (in snippets)

We now use TextMate’s asciify transformation which does a better job (and is less arcane) than the custom regexp.