Misc improvements

- generate migrations in coffeescript, with some more convenience fields added in