Implements all role names as SQL identifiers.

Adds missing functionality for function templates:
BodyPrelude and BodyPostlude was unimplemented.

Adds support for roles in documentation template.