Install the stock configuration.
Cosmetic fix
Fixed an SConscript that never really worked.
Clone the BUILD_ENV to avoid side effect in other scripts or from other scripts.
Export BINDIR in the Python directory SConscript.
Make kcdshell use psycopg2.
Don't hardcode the path to the configuration file.
Remove all calls to redirect_to from kas_cfg. Replaced them with simple calls to 'redirect'.
Remove TeamboxDebugMiddleware as it seems more of an inconvenience than anything.
Remove import of redirect_to and redirect from routes. redirect_to is not used in this and redirect doesn't exist in the module routes.
This would have had to be removed as it causes side-effects.
Copy the common templates elements into the respective apps.
Revert "Remove TeamboxDebugMiddleware as it seems more of an inconvenience than anything."

This reverts commit b4431dc65125706bbc8420920fa803b8dd7287dc.
Now installs the mail template and DB configuration through SCons.
Make the database connection configurable.
SSL certificates and keys needs to be generated and configured for the KCD to accept SSL connection.
Added default PostgreSQL configuration in kcd.ini and a placeholder for the database password.
Missing element of the patch on database configurability.
Create kcd role and grants it rights to the KCD database.
Make the database connection for KWMO and Freemium configurable.