Added a capability to specify a foreign key.
Fixed saving of dart2jsPath.