Bug 1018311 part 1 - Refactor JSDependentString a bit. r=luke
Bug 1018311 part 2 - Support creating dependent latin1 strings. r=luke
Bug 1018311 part 3 - Add tests. r=luke