Misc fixes

- Fixing escaping of input strings.
- Conditional copying of hybrid local resources (not for remote).
- Include backbone and force.entity.js in the local template.
- Latest HybridShared.