Fixed usage of deprecated assert.
Improved the pluggability of templates.

It is now easy to choose which base template the provided ones should
extend and where they are supposed to include their contents.
Added a base class for additional user details forms.

Also implemented a test for the additional forms mechanism.