Allow reference by DaoFactory in foreign key definition

This PR extends @optilude great work and makes it possible to pass a DaoFactory to the references option of the foreign key definition:

      var Author = this.sequelize.define('author', { firstName: Sequelize.STRING })
      var Post   = this.sequelize.define('post', {
        title:    Sequelize.STRING,
        authorId: {
          type:          Sequelize.INTEGER,
          references:    Author,
          referencesKey: "id"
        }
      })

This will automatically use the `Author`'s tableName.