Added global 'document' to prevent errors

Chaplin, in particular, makes assumptions about the presence of
'document' in the global scope. Eventually we may remove this but for
now it's an easy way to prevent Chaplin errors.
Added Chaplin support
Use custom chaplin fork
Added .gitkeep to Resources/generated
Added more tb styles
Bumped patch version of titanium-backbone and titanium-backbone-ks