Improve payment and purchase item models

Specify the table for STI models in a single place.
Use a constant for the completed state value.
Merge pull request #7 from OpenBuildings/improve-models

Improve payment and purchase item models