Added a capability to specify a foreign key.
Fixed saving of dart2jsPath.
Issue #87. Fixed incomplete test.