Support for new tx handling 

Added:
* `is_completed` and `part` fields in `transactions` table,
* PRIMARY KEY changed from id to (id, part),
* migration `003`

Rest is just a merge from `migrations` branch.

**DO NOT MERGE** it yet.
Since it's a `part`-ial tx, I think `part` describes it pretty well.