Added the initialization to the wsgi, fcgi and test scripts (issue #58).

This also fixes #53.
Merge pull request #60 from jjmurre/master

Added the last steps needed for #58, includings tests.