Basic save state functionality, no loading.

In fact we can get better structure by replacing the structure like:

```
var phrases = []
for (var id in transUnits) {
  ...
}
return phrases;
```

with something more like:

```
return _.each(transUnits, function (tu) {
  ...
});
```