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
Merge pull request #163 from benesch/feature-aggregate-avg

Add 'avg' aggregate function