URL query to SQL with joined tables.

The SmartQuery object can now interpret selection, filter and sorting on
field from joint tables when building a SQL query from the URL query.