testing indexes on biz keys and refs
added optional schemaCallback to resource
Merge pull request #16 from flyvictor/schema-callback

Added schema creation callback
Merge pull request #17 from flyvictor/indexes-on-pk-and-refs

indexed business keys and refs
replaced pkTypes with types in tests to check they would still pass
Merge remote-tracking branch 'origin/master' into WEB-2656-documents-with-links

Conflicts:
	test/all.js
	test/app.js
Merge remote-tracking branch 'origin/master' into WEB-2656-documents-with-links

Conflicts:
	test/all.js
	test/app.js