Result set transformation

Added the ability to transform result sets as they're read from the database. Useful for reformatting results for JSON output, resolving DB relationships concisely, and creating composite column values.