3.0 ORM: Automagic foreignKey resolution draft

Following #4577

Here is a draft of automagic `foreignKey` resolution.
This is just a feature proposition ;). Maybe it will prove useful in the future.

I've also included a fix for some table tests where belongsToMany associations pointed to non-existing `tag` tables. This caused table description to fail while getting `primaryKey` from schema.