Add id() to model

all properties should be accessed using a getter.
Add test.js to demonstrate usage.

test.js shows how to use the db and model objects along with
an environment dict.