Creating environment independent configuration files during installation

Hello,

In this commit I changed installation files.
Also DB configuration moved to separated file. 
It is very comfortable for different environments.
It is very useful for me and I hope it would be useful for other people.