Support for Statement Ids

Ids are used to communicate with the API and should be represented
in the data model explicitly, even though they are not entered by
users.