TEIID-2656: The designer based VDBs does not set the reference table
name on the ForeignKey, they only set the Primary Key, thus the OData
metadata call was failing to resolve the Foreign keys and throwing up an
exception. Fixed such that in obsence of Reference table name, if PK is
present the value will be derived from it, also pulled Steve's commit to
fix NPE

Conflicts:

	odata/src/test/java/org/teiid/odata/TestODataIntegration.java

Conflicts:

	odata/src/main/java/org/teiid/odata/ODataEntitySchemaBuilder.java
	odata/src/main/java/org/teiid/odata/ODataSQLBuilder.java
	odata/src/test/java/org/teiid/odata/TestODataIntegration.java