Add 'avg' aggregate function

The 'AVG' aggregate function is specified in the SQL standard and
supported by MySQL, PostgreSQL, and SQLite. Include tests, too.
Document the shiny new 'avg' aggregate function