Don't include whitespace when matching %!TEX options

This ensures we get only the intended value without any of the surrounding whitespace and line ending characters. Fixes #49, thanks to @inz for the pointer to the cause.
Citation Based on Current Word: Correct typo
Allow variables to be used in a \footnote{} function

Thanks to Andreas Löffler.
Correct escaping of \textwidth in image file drop action

Otherwise inserts "extwidth" which doesn't work
Correct numbering of placeholders in image file drop action

Previously was inserting the content of $1 as the image width.
Use popup for placement options in image drop action
Use version 1.8 of ruby for bundle items

10.7 and 10.8 only include ruby 1.8, so all bundle items have been written to work with that. Optionally supporting ruby 1.9 and 2.0 is problematic as these versions are not fully backwards compatible.

#ignore
Fix label completion (⎋)

This command used stdin to get the word being completed, but should use the TM_CURRENT_WORD variable.

Additionally it used grep with a string which should be a “begin of buffer” anchored regular expression (based on the phrase).